from typing import List, Dict, Any, Optional
from pydantic import BaseModel


class SecondBargainingResponse(BaseModel):
    """
    统一API响应模型（这里是响应

            ----------------------------------包装Response对象---------------------------------------
                返回Json格式的对应数据
            ---------------------------------------------------------------------------------------

    """
    form: Dict[str, Any] = {}
    is_manual: bool = False
    agent_response: Optional[str] = ""    #当前接口会返回给用户的内容(后续改成列表，能一次传送多条消息)
    status: str = "0"
    reference: Optional[str] = ""
    category: Optional[str] = ""  # 拒绝原因
    subcategory: Optional[str] = ""  # 小类
    cooperation_status: Optional[str] = ""  # 合作状态大类
    is_first: int = 0  # 新增字段
    is_submit: int = 0  # 用户是不是已经填过表单，填过为1，直接下一步，没填就两轮对话要求他填
    empty_info: List[str] = []  # 哪些信息没填
    diff_info: List[str] = []  # 哪些信息有差异
